<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<%@ include file="jsp/common/StyleEUIMobile.jsp"%>
<title>千禧店铺销售报表系统</title>
<script type="text/javascript" charset="utf-8">

function login(){
    var params=$("#loginForm").serialize(); 
    if ($('#loginForm').form('validate'))
   
        $.post("<%=request.getContextPath()%>/actionMobile/loginJSON!HqIpadLogin",params, loginBackProcess,"json");
}
function loginBackProcess(data){
	var response = data.response;
	var returnCode = response.returnCode;
	if (returnCode != SUCCESS){
		$.messager.alert('错误提示',response.message,'warning');
	} else {
		window.location.href = "<%=request.getContextPath()%>/actionMobile/chainReportJSPAction!preSalesStatisticReportMB?formBean.reportType=1&formBean.categoryLevel1.category_ID=0&formBean.category.category_ID=0";		    
	}
}
</script>
</head>
<body>
     <div class="easyui-navpanel" style="position:relative;padding:20px">
     	<header>
			<div class="m-toolbar">
				<div class="m-title">千禧店铺销售系统</div>
			</div>
		</header>
		
	   <form id="loginForm" name="loginForm" cssClass="easyui-form" autocomplete="off">
		<div style="text-align:center">
		   
			<div style="margin-bottom:10px">
				手机登录端口
			</div>
			<div style="margin-bottom:10px">
				<input id="userName" name="user.user_name" type="text"  class="easyui-textbox"  prompt="用户名" style="width:100%;height:30px"  data-options="required:true">
			</div>
			<div style="margin-bottom:10px">
				<input id="password" name="user.password" type="text"  class="easyui-textbox" prompt="密码" style="width:100%;height:30px"  data-options="required:true">
			</div>						
			<div  style="margin-bottom:10px">
				<a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%;height:35px" onclick="login();">总部人员登录</a>
			</div>
			
		</div>
      </form>
      </div>


</body>
</html>